﻿using System;
using System.Collections.Generic;
namespace DeliveryManage.Model
{
	/// <summary>
	/// Pro_Orders:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Pro_Orders
	{
		public Pro_Orders()
		{}
		#region Model
		private int _id;
		private string _orderno="";
		private int _deliveryway=-1;
		private int _employeeid=0;
		private bool _orderType = false;
		private int _status=0;
		private string _customername="";
		private string _customertel="";
		private string _customeraddress="";
		private bool _customersex= false;
		private decimal _totalamount=0.00M;
		private string _remark="";
		private DateTime? _created= DateTime.Now;
        
        /// <summary>
        /// 自增Id
        /// </summary>
        public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 订单编号
		/// </summary>
		public string OrderNo
		{
			set{ _orderno=value;}
			get{return _orderno;}
		}
        /// <summary>
        /// 物流方式：0快递、1散酒，2存酒，3自提
        /// </summary>
        public int DeliveryWay
		{
			set{ _deliveryway=value;}
			get{return _deliveryway;}
		}
        /// <summary>
        /// 下单员工
        /// </summary>
        public int EmployeeId
		{
			set{ _employeeid=value;}
			get{return _employeeid;}
		}
        /// <summary>
        /// 订单类型：0新订单，1复购订单
        /// </summary>
        public bool OrderType
		{
			set{ _orderType = value;}
			get{return _orderType; }
		}
        /// <summary>
        /// 订单状态：0新建订单，1审核不通过，2审核通过，3申请退款订单，4退款成功
        /// </summary>
        public int Status
		{
			set{ _status=value;}
			get{return _status;}
		}
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string CustomerName
		{
			set{ _customername=value;}
			get{return _customername;}
		}
        /// <summary>
        /// 客户电话
        /// </summary>
        public string CustomerTel
		{
			set{ _customertel=value;}
			get{return _customertel;}
		}
        /// <summary>
        /// 客户地址
        /// </summary>
        public string CustomerAddress
		{
			set{ _customeraddress=value;}
			get{return _customeraddress;}
		}
        /// <summary>
        /// 客户性别：0:女，1:男
        /// </summary>
        public bool CustomerSex
		{
			set{ _customersex=value;}
			get{return _customersex;}
		}
        /// <summary>
        /// 订单总金额
        /// </summary>
        public decimal TotalAmount
		{
			set{ _totalamount=value;}
			get{return _totalamount;}
		}
        /// <summary>
        /// 订单备注
        /// </summary>
        public string Remark
		{
			set{ _remark=value;}
			get{return _remark;}
		}
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime? Created
		{
			set{ _created=value;}
			get{return _created;}
		}
		#endregion Model

		#region Model_Extend

		/// <summary>
		/// 订单商品信息
		/// </summary>
		public List<DeliveryManage.Model.Pro_OrderGoods> OrderGoods { get; set; }

        /// <summary>
        /// 订单商品信息
        /// </summary>
        public List<DeliveryManage.Model.Pro_ShopGoods> OrderShopGoods { get; set; }

        /// <summary>
        /// 下单员工姓名
        /// </summary>
        public int EmployeeName
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        #endregion

    }
}

